package com.bicon.base.data.pojo.botu;

import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author zhoutyianqi
 * @since 2018-07-25
 */
@TableName("order_receipt")
public class OrderReceipt extends Model<OrderReceipt> {

    private static final long serialVersionUID = 1L;

    /**
     * 收款id
     */
    private String id;
    /**
     * 逻辑删除 0正常  1删除
     */
    @TableField("logic_delete")
    private String logicDelete;
    /**
     * 创建日期
     */
    @TableField("create_date")
    private Date createDate;
    /**
     * 更新日期
     */
    @TableField("update_date")
    private Date updateDate;
    /**
     * 收款编号
     */
    @TableField("receipt_no")
    private String receiptNo;
    /**
     * 用户id(买家)
     */
    @TableField("user_id")
    private String userId;
    /**
     * 收款金额
     */
    private BigDecimal money;
    /**
     * 商铺id
     */
    @TableField("store_id")
    private String storeId;
    /**
     * 分组订单id
     */
    @TableField("main_order_id")
    private String mainOrderId;
    /**
     * 交易编号
     */
    @TableField("transaction_no")
    private String transactionNo;
    /**
     * 0 交易中  1 支付成功 2 支付失败 3 取消交易 4待收款
     */
    @TableField("pay_state")
    private Integer payState;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getLogicDelete() {
        return logicDelete;
    }

    public void setLogicDelete(String logicDelete) {
        this.logicDelete = logicDelete;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public String getReceiptNo() {
        return receiptNo;
    }

    public void setReceiptNo(String receiptNo) {
        this.receiptNo = receiptNo;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public BigDecimal getMoney() {
        return money;
    }

    public void setMoney(BigDecimal money) {
        this.money = money;
    }

    public String getStoreId() {
        return storeId;
    }

    public void setStoreId(String storeId) {
        this.storeId = storeId;
    }

    public String getMainOrderId() {
        return mainOrderId;
    }

    public void setMainOrderId(String mainOrderId) {
        this.mainOrderId = mainOrderId;
    }

    public String getTransactionNo() {
        return transactionNo;
    }

    public void setTransactionNo(String transactionNo) {
        this.transactionNo = transactionNo;
    }

    public Integer getPayState() {
        return payState;
    }

    public void setPayState(Integer payState) {
        this.payState = payState;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "OrderReceipt{" +
        "id=" + id +
        ", logicDelete=" + logicDelete +
        ", createDate=" + createDate +
        ", updateDate=" + updateDate +
        ", receiptNo=" + receiptNo +
        ", userId=" + userId +
        ", money=" + money +
        ", storeId=" + storeId +
        ", mainOrderId=" + mainOrderId +
        ", transactionNo=" + transactionNo +
        ", payState=" + payState +
        "}";
    }
}
